package com.study.yml;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
public class Account {

    @Value("${account.name}")
    private String name;
    @Value("${account.password}")
    private String password;

    @Value("#{'${list}'.split(',')}")
    private List<String> list;
}
